<?php

/**
 * Descrever a função.
 * 
 * @param type $msqsErro
 * } else {        
            // Lista de possíveis erros de upload.
            $errorsUpload = array(
                0 => "There is no error, the file uploaded with success",
                1 => "The uploaded file exceeds the upload_max_filesize directive in php.ini",
                2 => "The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the HTML form",
                3 => "The uploaded file was only partially uploaded",
                4 => "No file was uploaded",
                6 => "Missing a temporary folder",
                7 => "Format type not allowed"
            );
            
            
        }
 */
function showListMensagens($mensagens) {

    if (isset($mensagens)) {        
        if (is_array($mensagens)){
            foreach ($mensagens as $mensagem) {
                foreach ($mensagem as $campo => $mensagem) {
                    echo("<li>" . $mensagem . "</li>");
                }
            }
        } else {
            echo("<li>" . $mensagens . "</li>");
        }
        
    }
}
?>
